//
//  LeiJiXiaoShouEListMiddleCell.m
//  FactorySale
//
//  Created by 李 on 2020/1/13.
//  Copyright © 2020 主事丫环. All rights reserved.
//

#import "LeiJiXiaoShouEListMiddleCell.h"

@implementation LeiJiXiaoShouEListMiddleCell

- (void)awakeFromNib {
    [super awakeFromNib];
  
    self.numLab.font =  KFontPingFangSCRegular(13);
    self.moneyLab.font =  KFontPingFangSCRegular(13);
    self.moneyLab.adjustsFontSizeToFitWidth = YES;
}
- (void)setFrame:(CGRect)frame{
         frame.origin.x += 20;
         frame.size.width -= 40;
         [super setFrame:frame];

}
-(void)setModel:(LeiJiXiaoShouEListModel *)model
{
    _model = model;
    if (_model) {
        self.numLab.text = [NSString stringWithFormat:@"%@%@",model.send_count,model.unit];
        self.moneyLab.text =  [NSString stringWithFormat:@"%@元",model.amount];
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
